from django.db import models
from realize.models.category.FaStationCategory import FaStationCategory


# 一个基站下面有多个台站

class FaStation(models.Model):
    name = models.CharField(max_length=100, verbose_name="基站名称")
    category = models.ForeignKey(FaStationCategory, verbose_name='基站类名', on_delete=models.CASCADE, blank=True,
                                 null=True)
    center_location = models.CharField(max_length=200, verbose_name="中心经纬坐标")
    range = models.IntegerField(verbose_name="基站区域覆盖半径/m")

    def __str__(self):
        return f"基站： {self.name}"

    class Meta:
        verbose_name_plural = '基站 - FaStation'
